﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>蓝点论坛登录</title>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css"
	href='<c:url value="/jsps/user/css/reg.css"></c:url>' />
</head>
<body>
	<h1>
		<a href="<c:url value='/ArticleServlet1?method=findAll'/>">蓝点论坛</a>登录
	</h1>
	<!-- 
  1,显示错误信息
  2，回显
   -->
	<p style="color: red; font-weight: 900">${msg }</p>
	<form action="<c:url value='/UserServlet'/>" method="post">
		<!-- 调用UserServlet中的login()方法 -->
		<input type="hidden" name="method" value="login" /> 
		用户名：<input type="text" name="username" value="${form.username }" /> 
		<span style="color: red; font-weight: 900">${errors.username }</span> 
		<br /><br />
	           密    码：<input type="password" name="password" value="${form.password }" />
		<span style="color: red; font-weight: 900">${errors.password }</span>
		<br /><br />  
		<input type="submit" class="submit" id="submit" value="登录" />
		<div class="formDiv">
			<a href='<c:url value="/jsps/user/reg.jsp"></c:url>'><input
				type="button" class="hava" id="hava" value="没有账号?" /></a> <a href=""><input
				type="button" class="forget" id="forget" value="忘记密码?" /></a>
		</div>
	</form>
</body>
</html>
